import React, { Component } from 'react';
import { Form, Input, Modal, Radio } from 'antd';

interface Iprops {
    downloadPropsVisible:boolean
    downLoadPropsModal:any
}

class DownLoadModal extends Component<Iprops,any> {
	render() {
		return (
			<Modal
				visible={this.props.downloadPropsVisible}
				onOk={() => this.props.downLoadPropsModal( true )}
				onCancel={ () => this.props.downLoadPropsModal( false )}
				cancelText={'取消'} mask={false} maskClosable={false}
				okText={'确定'}
			>
				<h2>下载</h2>
				<Form>
					<Form.Item label="类型：">
						<Radio.Group>
							<Radio value={1}>excel</Radio>
							<Radio value={2}>csv</Radio>
							<Radio value={3}>txt</Radio>
						</Radio.Group>
					</Form.Item>
					<Form.Item label="路径">
						<Input size="small" defaultValue="C:\Users\xiaow\Desktop" addonAfter={<span>选择</span>}></Input>
					</Form.Item>
				</Form>

			</Modal>
		);
	}
}

export default DownLoadModal;